<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>p8CSS优先级权重practice</title>
    <style>
        .nav {
            color: red;
        }

        li {
            color: pink;
        }
    </style>
</head>
<body>
    <ul class="nav">
        <!-- 继承过来的权重为0 -->
        <li>开心顺利</li>
        <li>开心顺利</li>
        <li>开心顺利</li>
    </ul>
</body>
</html>